package com.lynn.salary.util;

import java.util.ArrayList;
import java.util.List;

public class TableField {

	private String tableName;
	private String tableAlias;
	private List<String> fields = new ArrayList<String>();

	public String getValue() {
		return null;
	}

	public void addField(String field) {
		fields.add(field);
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTableAlias() {
		return tableAlias;
	}

	public void setTableAlias(String tableAlias) {
		this.tableAlias = tableAlias;
	}

	public List<String> getFields() {
		return fields;
	}

	public void setFields(List<String> fields) {
		this.fields = fields;
	}

	public void addField(String[] fields) {
		if (fields == null || fields.length == 0) {
			System.err.println("TableField::addField��ӿ�fields����");
			return;
		}
		for (int i = 0; i < fields.length; i++) {
			this.fields.add(fields[i]);
		}
	}

}
